<?php

class redirectMeDownComponents extends myComponents{

	public function executeRender(){

		
		  if(($menuElement = NavigationMenu::getInstance(NavigationMenu::DEFAULT_MENU)
				->getElement(MenuElement::STRUCTURE_NODE, $this->getObject()->getId()))){


					foreach($menuElement->getSubElements() as $sub){
						if(!$sub->isHidden()){
							$this->getAction()->redirect($sub->getLink());
						}
					}
			}
		
		
		return sfView::NONE;
	}
	
}